package org.jeecg.modules.shop.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: 商品评论
 * @Author: jeecg-boot
 * @Date:   2020-08-07
 * @Version: V1.0
 */
@ApiModel(value="rs_product对象", description="商品管理")
@Data
@TableName("rs_shop_comment")
public class RsShopComment implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
	@ApiModelProperty(value = "主键")
	private String id;
	/**创建人*/
	@ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建日期")
	private Date createTime;
	/**更新人*/
	@ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "更新日期")
	private Date updateTime;
	/**所属部门*/
	@ApiModelProperty(value = "所属部门")
	private String sysOrgCode;
	/**商品id*/
	@ApiModelProperty(value = "商品id")
	private String productId;
	/**评论内容*/
	@Excel(name = "评论内容", width = 15)
	@ApiModelProperty(value = "评论内容")
	private String comment;
	/**评论人*/
	@Excel(name = "评论人", width = 15)
	@ApiModelProperty(value = "评论人")
	private String commentUser;
	/**评论时间*/
	@Excel(name = "评论时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "评论时间")
	private Date commentTime;
	/**满意度*/
	@Excel(name = "满意度", width = 15)
	@ApiModelProperty(value = "满意度")
	private Integer star;
}
